﻿using ForguncyPluginTemplate;
using System.ComponentModel;
using System.Windows.Controls;


namespace ForguncyPluginTemplate.Designer.DrawingControl
{
    /// <summary>
    /// Interaction logic for ForguncyPluginTemplateCellTypeDrawingControl.xaml
    /// </summary>
    public partial class ForguncyPluginTemplateCellTypeDrawingControl : UserControl
    {

        public ForguncyPluginTemplateCellTypeDrawingControl(ForguncyPluginTemplateCellType cellType)
        {
            this.DataContext = new ForguncyPluginTemplateCellTypeDrawingControlViewModel();
            this.ViewModel.Text = cellType.GetType().Name;

            InitializeComponent();
        }

        public ForguncyPluginTemplateCellTypeDrawingControlViewModel ViewModel
        {
            get
            {
                return this.DataContext as ForguncyPluginTemplateCellTypeDrawingControlViewModel;
            }
        }

        public class ForguncyPluginTemplateCellTypeDrawingControlViewModel
        {
            public string Text { get; set; }
        }
    }
}
